<div class="studentinfos form">
<?php echo $form->create('Studentinfo');
	echo $form->hidden('student_id', array('value' => $student['Student']['id']));
?>
	<fieldset>
 		<legend><?php __('Добавить информацию о студенте');?></legend>
<table width="100%" border="0" cellspacing="10" cellpadding="0" bgcolor="#CCCCCC">
  <tr>
    <td width="15%" class="labelblock">ФАМИЛИЯ</td>
    <td colspan="4" class="infoblock"><?php echo $form->input('lastname', array('value' => $student['Student']['lastname'], 'label' =>'', 'size' => 30));
 ?></td>
    <td width="15%" class="labelblock">ФАКУЛЬТЕТ</td>
    <td width="25%" class="infoblockgrey"><?php echo $profession[0]['Facultet']['name']; 
 ?></td>
  </tr>
  <tr>
    <td width="15%" class="labelblock">ИМЯ</td>
    <td colspan="4" class="infoblock"><?php echo $form->input('firstname', array('value' => $student['Student']['firstname'], 'label' =>'', 'size' => 30));
 ?></td>
    <td width="15%" class="labelblock">СПЕЦИАЛЬНОСТЬ</td>
    <td width="25%" class="infoblockgrey"><?php echo $profession[0]['Profession']['name']; 
 ?></td>
  </tr>
  <tr>
    <td width="15%" class="labelblock">ОТЧЕСТВО</td>
    <td colspan="4" class="infoblock"><?php echo $form->input('surname', array('value' => $student['Student']['surname'], 'label' =>'', 'size' => 30));
 ?></td>
    <td width="15%" class="labelblock">КУРС</td>
    <td width="25%" class="infoblockgrey"><?php echo $courses[$studentgroup[0]['Studentgroup']['course_id']]; 
 ?></td>
    </tr>
  <tr>
    <td width="15%" class="labelblock">ДАТА РОЖДЕНИЯ</td>
    <td class="infoblock"><?php echo $form->input('birthdate', array('label' =>'', 'minYear' => date('Y')-50));
 ?></td>
    <td colspan="2" class="labelblock">ПОЛ</td>
    <td class="infoblock"><?php  echo $form->input('gender_id', array('label' =>'')); 
 ?></td>
    <td width="15%" class="labelblock">ГРУППА</td>
    <td width="25%" class="infoblockgrey"><?php echo $studentgroup[0]['Studentgroup']['name'];
 ?></td>
    </tr>
  <tr>
    <td width="15%" class="labelblock">ДОКУМЕНТ ОБ ОБРАЗОВАНИИ</td>
    <td colspan="4" class="infoblock"><?php echo $form->input('educationdoctype_id', array('label' =>''));
 ?></td>
    <td width="15%" class="labelblock">ГОД ПОСТУПЛЕНИЯ</td>
    <td width="25%" class="infoblock"><?php echo $form->input('enrollment_date', array('label' =>'')); 
 ?></td>
    </tr>
  <tr>
    <td width="15%" class="labelblock">ДАННЫЕ ДОК-ТА ОБ ОБРАЗОВАНИИ</td>
    <td colspan="6" class="infoblock"><?php echo $form->input('educationdocdata', array('label' =>'', 'size' => 150));
 ?></td>
    </tr>
  <tr>
    <td width="15%" class="labelblock">ГОД ОКОНЧАНИЯ ШКОЛЫ</td>
    <td class="infoblock"><?php echo $form->input('schoolgraduated', array('label' =>'', 'size' => 30)); 
 ?></td>
    <td class="labelblock">ТИП ОБУЧЕНИЯ</td>
    <td colspan="2" class="infoblockgrey"><?php echo $learningtypes[$student['Student']['learningtype_id']]; 
 ?></td>
    <td width="15%" class="labelblock">ФОРМА ОБУЧЕНИЯ</td>
    <td width="25%" class="infoblockgrey"><?php echo $learningforms[$student['Student']['learningform_id']];
  ?></td>
  </tr>
  <tr>
    <td class="labelblock">ЦЕЛЕВОЕ НАПР.</td>
    <td class="infoblock"><?php 
    	echo $form->select('targetingintake_region_id', $regions, array('label' =>''));
  ?></td>
    <td class="labelblock">ОБЛАСТЬ </td>
    <td colspan="2" class="infoblock"><?php echo $form->input('region_id', array('label' =>''));
  ?></td>
    <td class="labelblock">ИН. ЯЗ.</td>
    <td class="infoblock"><?php echo $form->input('foreignlanguage_id', array('label' =>'')); 
  ?></td>
  </tr>
</table>		
  <br clear="all" />
  <table width="100%" border="0" cellspacing="10" cellpadding="0" bgcolor="#CCCCCC">
  <tr>
    <td class="labelblock">ГРАЖДАНСТВО</td>
    <td class="infoblock"><?php  echo $form->input('citizenship_id', array('label' =>'')); ?></td>
    <td class="labelblock">КЕМ ВЫДАН</td>
    <td colspan="5" class="infoblock"><?php echo $form->input('passport_data', array('label' =>'', 'size' => 80, 'error' => 'Заполните данные!')); ?></td>
  </tr>
  <tr>
    <td width="15%" class="labelblock">ПАСПОРТ СЕРИЯ</td>
    <td width="10%" class="infoblock"><?php  echo $form->input('passport_ser', array('label' =>'', 'size' => 15, 'error' => 'Заполните данные!')); ?></td>
    <td width="10%" class="labelblock">НОМЕР</td>
    <td width="10%" class="infoblock"><?php echo $form->input('passport_num', array('label' =>'', 'size' => 15, 'error' => 'Заполните данные!')); ?></td>
    <td width="10%" class="labelblock">МЕСТО РОЖД.</td>
    <td colspan="3" class="infoblock"><?php echo $form->input('passport_birth_place', array('label' =>'', 'size' => 30)); ?></td>
    </tr>
  <tr>
    <td colspan="2" class="labelblock">АДРЕС ПОСТОЯННОЙ ПРОПИСКИ</td>
    <td colspan="6" class="infoblock"><?php echo $form->input('passport_adress', array('label' =>'', 'rows' => 3, 'cols' =>60)); ?></td>
    </tr>
  <tr>
    <td colspan="2" class="labelblock">АДРЕС ПОСТОЯННОЙ РЕГИСТРАЦИИ</td>
    <td colspan="6" class="infoblock"><?php echo $form->input('adress', array('label' =>'', 'rows' => 3, 'cols' =>60)); ?></td>
    </tr>
  <tr>
    <td class="labelblock">ТЕЛЕФОН</td>
    <td class="infoblock"><?php echo $form->input('phone', array('label' =>'', 'size' => 30));  ?></td>
    <td class="labelblock">МОБ. ТЕЛЕФОН</td>
    <td class="infoblock"><?php echo $form->input('mobile', array('label' =>'', 'size' => 30)); ?></td>
    <td class="labelblock">ЭЛ. ПОЧТА</td>
    <td class="infoblock"><?php echo $form->input('email', array('label' =>'', 'size' => 30)); ?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </table>
 <br clear="all" />		
<table width="100%" border="0" cellspacing="10" cellpadding="0" bgcolor="#CCCCCC">
  <tr>
  <td class="labelblock">ЛЬГОТЫ
  </td>
  <td class="infoblock"><?php echo $form->input('Privilege', array('label' => '')); 
  ?>
  </td>
  </tr>
</table> 
 <br clear="all" />
<table width="100%" border="0" cellspacing="10" cellpadding="0" bgcolor="#CCCCCC">
  <tr>
  <td width="25%" class="labelblock">ИНН</td>
  <td width="25%" class="infoblock"><?php echo $form->input('inn', array('label' =>'', 'size' => 30)); 
  ?></td>
  <td width="25%" class="labelblock">ПЕНСИОННЫЙ СЕРТИФИКАТ</td>
  <td width="25%" class="infoblock"><?php echo $form->input('pension_certificate', array('label' =>'', 'size' => 30));
  ?>
  </td>
  </tr>
  <tr>
    <td class="labelblock">СТРАХ. СВ-ВО</td>
    <td class="infoblock"><?php echo $form->input('insurance', array('label' =>'', 'size' => 30)); 
  ?></td>
    <td class="labelblock">ПРИВИВКИ</td>
    <td class="infoblock"><?php echo $form->input('inoculations', array('label' =>'', 'size' => 50)); 
  ?></td>
  </tr>
  <tr>
    <td class="labelblock">ДОП. ИНФОРМАЦИЯ</td>
    <td colspan="3" class="infoblock"><?php echo $form->input('moreinfo', array('label' =>'', 'rows' => 3, 'cols' =>60)); 
  ?></td>
  </tr>
</table> 		
	</fieldset>
<?php echo $form->end('Добавить информацию');?>
</div>
<!--<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Studentinfos', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('List Students', true), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Student', true), array('controller' => 'students', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Genders', true), array('controller' => 'genders', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Gender', true), array('controller' => 'genders', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Citizenships', true), array('controller' => 'citizenships', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Citizenship', true), array('controller' => 'citizenships', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Regions', true), array('controller' => 'regions', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Region', true), array('controller' => 'regions', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Educationdoctypes', true), array('controller' => 'educationdoctypes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Educationdoctype', true), array('controller' => 'educationdoctypes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Foreignlanguages', true), array('controller' => 'foreignlanguages', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Foreignlanguage', true), array('controller' => 'foreignlanguages', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Babies', true), array('controller' => 'babies', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Baby', true), array('controller' => 'babies', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Contracts', true), array('controller' => 'contracts', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Contract', true), array('controller' => 'contracts', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Mates', true), array('controller' => 'mates', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Mate', true), array('controller' => 'mates', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Relatives', true), array('controller' => 'relatives', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Relative', true), array('controller' => 'relatives', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Targetingintakes', true), array('controller' => 'targetingintakes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Targetingintake', true), array('controller' => 'targetingintakes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Privileges', true), array('controller' => 'privileges', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Privilege', true), array('controller' => 'privileges', 'action' => 'add')); ?> </li>
	</ul>
</div>
-->